import request from "@/utils/request";
import type {AjaxResult} from "@/utils/request"
const base = '/base/tag'
/**
 * 获取标签
 * @returns Promise
 */
export const getTagList = () : Promise<AjaxResult<Array<Tag>>> => {
    return request({
        url: `${base}/list`,
        method: 'get'
    })
}


//标签
type Tag = {
    id:string,
    name:string,
    color?:string
}


export type {
    Tag
}
